package com.sc.nft.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.ClassifyType;
import com.sc.nft.enums.CommodityType;
import com.sc.nft.enums.ReceivedCollectionType;
import com.sc.nft.sup.SuperEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * (sc_collection_circulating_record)实体类
 *
 * @author Sun
 * @since 2022-06-27 15:20:43
 * @description 由 Mybatisplus Code Generator 创建
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sc_collection_circulating_record")
public class CollectionCirculatingRecord extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    private Long userId;
    /**
     * 藏品Id
     */
    private Long collectionId;
    /**
     * 商品类型1:普通商品2:积分兑换商品3:拉新4:空投
     */
    private CommodityType commodityType;
    /**
     * 分类 : 1:数字藏品 2:盲盒
     */
    private ClassifyType typeClassify;
    /**
     * 获取状态类型: 1:购买 2:积分兑换 3:空投 4:赠送 5:赠送收到 6:邀请奖励 7:合成
     */
    private ReceivedCollectionType receivedCollectionType;
    /**
     * 来源的藏品表id
     */
    private Long fromUserCollection;
    /**
     * 目标的藏品表id
     */
    private Long toUserCollection;
    /**
     * 来源用户id
     */
    private Long fromUserId;
    /**
     * 目标用户id
     */
    private Long toUserId;
    /**
     * 订单id
     */
    private Long orderId;
    /**
     * 邀请任务id
     */
    private Long inviteTaskId;
    /**
     * 邀请任务记录id
     */
    private Long userReceiveInviteId;
    /**
     * 积分兑换记录id
     */
    private Long userReceiveIntegraId;
    /**
     * 空投记录的id
     */
    private Long airdropGrantRecordId;
    /**
     * 合成记录的id
     */
    private Long userSynthesisRecordId;
    /**
     * 数量
     */
    private Integer number;

}